home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / theLifeArk.swf / scripts / __Packages / clock / ClockDisplay.as < prev   
Encoding:
Text File  |  2011-09-19  |  650 b   |  29 lines

  1. class clock.ClockDisplay extends MovieClip
  2. {
  3.    var dat;
  4.    var mTxt;
  5.    function ClockDisplay()
  6.    {
  7.       super();
  8.       this.dat = new Array();
  9.       this.dat = [0,0,0];
  10.    }
  11.    function setDat(pDat)
  12.    {
  13.       this.dat = pDat;
  14.       return undefined;
  15.    }
  16.    function timeOtpt()
  17.    {
  18.       var _loc3_ = this.dat[1] <= 9 ? "0" + String(this.dat[1]) : this.dat[1];
  19.       var _loc2_ = this.dat[2] <= 9 ? "0" + String(this.dat[2]) : this.dat[2];
  20.       this.mTxt.text = "TIME: " + _loc3_ + ":" + _loc2_;
  21.       return undefined;
  22.    }
  23.    function refreshTime(pDat)
  24.    {
  25.       this.setDat(pDat);
  26.       this.timeOtpt();
  27.    }
  28. }
  29.